<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    /* for(stateone;statetwo;statethree){
        console
        }
        第一次 stateone-->statetwo-->console
        之后 statethree-->statetwo-->console
        */
     /*    for(var i=0;i<=2;i++){
            console.log(i);
        }
         console.log(i); */

       /*   for( var i=0;i<=2;i++){
            console.log(i);
        } 
 */
     /*    for( var i=1;i<=7;i++){
            console.log(i);
        } */
        /* 0-10之间的偶数 */
         for(var i=0;i<=10;i++){
            if(i%2==0){
                console.log(i);
            }
        } 
        /* 0-10之间的奇数 */
         for(var i=0;i<=10;i++){
            if(i%2==1){
                console.log(i);
            }
        }   
    </script>
</body>
</html>